package com.kinghood.productcenter.common.model.vo.base;

import com.kinghood.productcenter.common.model.dto.base.AttributeReqDTO;
import com.kinghood.productcenter.common.model.enums.base.AttributeValueCodeEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-25 17:05
 **/
@Data
public class AttributeNameVO implements Serializable {

    private Long id;

    private String code;

    /**
     * 0：系统code，1：属性code
     */
    private Integer codeType;

    private String name;

    /**
     * 值类型代码
     * {@link AttributeValueCodeEnum}
     */
    private String valueCode;

    /**
     * 是否显示，1：显示，0：不显示
     */
    private Boolean isShow;

    /**
     * 属性信息
     */
    private AttributeReqDTO attributeInfo;

    public AttributeNameVO() {
    }

    public AttributeNameVO(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public AttributeNameVO(String code, Integer codeType, String name) {
        this.code = code;
        this.codeType = codeType;
        this.name = name;
    }
}
